package com.ruowei.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties specific to Ruowei App.
 * <p>
 * Properties are configured in the {@code application.yml} file.
 * See {@link io.github.jhipster.config.JHipsterProperties} for a good example.
 */
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
@Data
public class ApplicationProperties {

    private final File file = new File();
    private String filePath;
    private String pdfExportDir;
    private String excelExportDir;
    //小程序Id
    private String appId;
    //小程序密钥
    private String appSecret;
    //文件上传存储路径
    private String uploadDir;
    private String uploadUrlPrefix;
    private String staticDir;
    //商家App key
    private String merchantAppKey;
    //商家 App secret
    private String merchantAppSecret;
    //配送员App key
    private String courierAppKey;
    //配送员App secret
    private String courierAppSecret;
    //调度站App key
    private String carAppKey;
    //调度站App secret
    private String carAppSecret;
    //商户号
    private String mchId;
    //商户秘钥
    private String mchKey;
    //微信支付回调路径
    private String notifyUrl;
    //微信支付退款回调路径
    private String refundNotify;
    //测试服务器证书路径
    private String certPath;
    //服务器地址
    private String serverUrl;

    @Data
    public static class File {
        private String uploadDir;
    }
}
